package com.loong.seller.common.backend.param;

import com.loong.common.validator.group.CommonInsert;
import com.loong.common.validator.group.CommonUpdate;
import com.loong.common.validator.group.CommonValidate;
import lombok.*;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;


/**
 * @Description:
 * @Author: hzp
 * @Date: 2020-11-9 11:22
 */
@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class ShopDeliveryParam {
    @NotNull(groups = {CommonUpdate.class},message = "id不能为空")
    private Long id;
    /**
     * 店铺id
     */
    @NotNull(groups = {CommonInsert.class,CommonUpdate.class},message = "店铺id不能为空")
    private Long shopId;

    /**
     * 配送方式id
     */
    @NotNull(groups = {CommonInsert.class},message = "配送方式id不能为空")
    private Long deliveryId;

    /**
     * 配送基础费用
     */
    @NotNull(groups = {CommonValidate.class},message = "设置基础配送费不能为空")
    private BigDecimal basePrice;

    /**
     * 默认选择其中一个
     */
    private Boolean selected;
}
